package com.wanxi.string;

import java.util.Scanner;

public class ReplaceString {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一串字符串（一段话）： ");
        String text = scanner.next();

        String text2 =text.replace("王云","******");//用******替换王云，
        System.out.println(text2);



    }
}
